package day5.HomeWork;

public class Test4 {
    public static void main(String[] args) {
        // 创建圆对象并测试
        Circle circle = new Circle(5);
        System.out.println(circle.toString());
        System.out.println("圆的表面积为："+circle.getSurface());
        System.out.println("圆的周长为："+circle.getGrith());

        System.out.println("==========================================");
        // 创建圆柱体对象并测试
        Cylinder cylinder = new Cylinder(3, 10);
        System.out.println(cylinder.toString());
        System.out.println("圆柱的表面积为："+cylinder.getSurface());
       System.out.println("圆柱的体积为："+cylinder.getVolume());
    }
}
